package com.yike.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import com.yike.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 代理商表
 *
 * @author Sakura
 * @since 2024-08-26
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("qy_agent")
@ApiModel(value = "Agent对象")
public class Agent extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("代理商编号")
    private String agentNo;

    @ApiModelProperty("上级代理商ID")
    private Long parentId;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("代理商名称")
    private String name;

    @ApiModelProperty("店铺照片")
    private String corpImg;

    @ApiModelProperty("公司名称")
    private String corpName;

    @ApiModelProperty(value = "联系人", required = true)
    private String contact;

    @ApiModelProperty(value = "联系电话", required = true)
    private String mobile;

    @ApiModelProperty("省code")
    private String provCode;

    @ApiModelProperty("市code")
    private String cityCode;

    @ApiModelProperty("区code")
    private String distCode;

    @ApiModelProperty("详细地址")
    private String address;

    @ApiModelProperty("分佣比例（1-100）")
    private BigDecimal commissionRate;

    @ApiModelProperty("状态：1正常 2禁用")
    private Integer status;

}
